package com.atguigu.springcloud;

import com.alibaba.csp.sentinel.transport.config.TransportConfig;
import com.atguigu.springcloud.utils.IPUntils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author MtRider
 * @version 1.0
 * @description
 * @GiteeAndGithub MtRider
 * @date 2022/4/13 20:25
 */
@EnableDiscoveryClient
@SpringBootApplication
public class MainApp8401 {
    public static void main(String[] args) {
        String ip = IPUntils.getOutIPV4();
        //System.setProperty(TransportConfig.HEARTBEAT_CLIENT_IP, ip);
        SpringApplication.run(MainApp8401.class, args);
    }
}
